﻿using System;
using System.Collections.Generic;

namespace CoreShop.App
{
    public class OrderItemInfo
    {
        public Int64 id { get; set; }
        public int paymentId { get; set; }
        /// <summary>
        /// 订单名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 结账时间
        /// </summary>
        public string Order { get; set; }

        /// <summary>
        /// 退款字符串
        /// </summary>
        public string Returning { get; set; }

        /// <summary>
        /// 订单尾号
        /// </summary>
        public string OrderID { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public string Money { get; set; }

        /// <summary>
        /// 金额来源
        /// </summary>
        public string MoneyFrom { get; set; }

        /// <summary>
        /// 订单标签
        /// </summary>
        public readonly List<string> Tags = new List<string>();

        public OrderItemInfo()
        {
            Name = "";
            Order = "";
            OrderID = "";
            Returning = "";
            Money = "";
        }

        public void AddTag(string tag)
        {
            Tags.Add(tag);
        }

        public void ClearTags()
        {
            Tags.Clear();
        }
    }
}
